<%@ page language="java" contentType="text/html; charset=UTF-8"   pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<c:if test="${sessionScope.memberVO != null }">
	 <jsp:forward page="/res/member_details.jsp"/>
</c:if>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>Insert title here</title>
	<link rel="stylesheet" type="text/css" href="css/user_css.css">
	<script type="text/javascript">
	function loginCheck(){
		 
		 if(document.login_form.id.value==""){
			  alert("아이디를 입력해 주세요.");
			  document.login_form.id.focus();
			  return false;
		 }
		 if(document.login_form.password.value==""){
			  alert("비밀번호를 입력해 주세요.");
			  document.login_form.password.focus();
			  return false;
		 }
	}
</script>
</head>

<body>
<div id="wrap">
	<div id="header">
	    <jsp:include page="/menu.jsp"></jsp:include>
	</div>
	
	<div id="centerCon">
		<form action="/${initParam.context_root }/login.do" method="post" name="login_form" onsubmit="return loginCheck()">

		<center>
		<input type="hidden" name="command" value="login">
		<br><br><br>
		<fieldset>
			    <legend>사용자 로그인</legend>
			<table>
				 <tr>
				 	 <td colspan="2">&nbsp;&nbsp; </td>
				 </tr>
				 <tr>
				  	<td align="center">UserID</td>
				  	<td align="left" ><input type="text" name="id" style="width:100px;"></td>
				 </tr>
				 <tr>
				 	 <td align="center">Password</td>
				 	 <td align="left"><input type="password" name="password" style="width:100px;"></td>
				 </tr>
				 <tr> <td colspan="2" align="center" >&nbsp;&nbsp;   </td> </tr>
				 <tr>
				   	<td colspan="2" align ="center">
				  	    <input type="submit" value="로그인">&nbsp;&nbsp;
				  	    <input type="reset"  value="초기화">
				    </td>
				 </tr>
			</table>
		</fieldset>	
		</center>
		</form>
		
		<center>
			 <c:if test="${requestScope.error_message!=null }">
	  	    	 <font color="red">${requestScope.error_message } </font> 
	    	 </c:if>
    	</center> 
	</div>
	
	<div id="footer">
		<jsp:include page="/footer.jsp"></jsp:include>   
	</div>
</div>	









<%-- 
<jsp:include page="/menu.jsp"/>
<form action="/${initParam.context_root }/login.do" method="post" name="login_form" onsubmit="return loginCheck()">

	<center>
	<input type="hidden" name="command" value="login">
	<br><br><br>
	<fieldset>
		    <legend>사용자 로그인</legend>
		<table>
			 <tr>
			 	 <td colspan="2">&nbsp;&nbsp; </td>
			 </tr>
			 <tr>
			  	<td align="center">UserID</td>
			  	<td align="left"><input type="text" name="id"></td>
			 </tr>
			 <tr>
			 	 <td align="center">Password</td>
			 	 <td align="left"><input type="password" name="password"></td>
			 </tr>
			 <tr> <td colspan="2" align="center" >&nbsp;&nbsp;   </td> </tr>
			 <tr>
			   	<td colspan="2" align ="center">
			  	    <input type="submit" value="로그인">&nbsp;&nbsp;
			  	    <input type="reset" value="초기화">
			    </td>
			 </tr>
		</table>
	</fieldset>	
	</center>
	 --%>
	
	
	
	
	
	
	
	
</form>
</body>
</html>
